<style tyle="text/css">
    .modal-lg {
        width: 65%;
    }
    .btn-style {
      width: 100px;
      margin-right: 10px;
    }
</style>
<div class="modal-header">
  <h4 class="modal-title">任务信息</h4>
</div>
<div class="modal-body">
  <form name="form" class="form-horizontal ng-pristine ng-valid-required">
    <div class="form-group">
      <label class="col-lg-3 control-label">任务标题：</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="task.task_title" placeholder="必填">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">任务描述：</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="task.task_content">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">数据库类型：</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="task.to_datasource_type" placeholder="必填">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">目标数据库：</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="task.to_database" placeholder="必填">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">目标表：</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="task.to_table_name" placeholder="必填">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">触发操作类型：</label>
      <div class="col-lg-9">
        <label class="btn btn-info btn-style" ng-repeat="item in fromDate.oper_list" ng-model="item.check" btn-checkbox="">
          <span class="text">{{item.label}}</span>
          <i class="fa fa-check text-active"></i>
          <span class="text-active">{{item.label}}</span>
        </label>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">操作目标类型：</label>
      <div class="col-lg-6">
        <textarea class="form-control" rows="3" ng-model="task.oper_target_type"></textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">触发过滤条件：</label>
      <div class="col-lg-6">
        <textarea class="form-control" rows="3" ng-model="task.oper_filter"></textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">同步类型：</label>
      <div class="col-xs-6">
        <div class="radio">
          <label class="i-checks">
            <input type="radio" name="-_-" ng-model="task.sync_type" value="1">
            <i></i>字段对应同步
          </label>
          <label class="i-checks" style="margin-left: 15px;">
            <input type="radio" name="-_-" ng-model="task.sync_type" value="2">
            <i></i>sql同步
          </label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">同步条数：</label>
      <div class="col-lg-6">
        <input type="number" class="form-control" ng-model="task.sync_setup_num">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">同步内容：</label>
      <div class="col-lg-6">
        <textarea class="form-control" rows="3" ng-model="task.sync_content"></textarea>
      </div>
    </div>
    <div class="form-group" ng-show="task.sync_type == '2' ">
      <label class="col-lg-3 control-label">数据来源sql：</label>
      <div class="col-lg-6">
        <textarea class="form-control" rows="3" ng-model="task.sync_from_sql"></textarea>
      </div>
    </div>

  </form>

</div>
<div class="modal-footer">
  <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
  <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>